//
//  ThumbImageView.h
//  coocsless
//
//  Created by fabian on 02.03.11.
//  Copyright 2011 roboboogie. All rights reserved.
//


@protocol ThumbImageViewDelegate;

@interface ThumbImageView : UIImageView {
	NSString *imageName;
	int someId;
    
    /* ThumbImageViews have a "home," which is their location in the containing scroll view. Keeping this distinct */
    /* from their frame makes it easier to handle dragging and reordering them. We can change their relative       */
    /* positions by changing their homes, without having to worry about whether they have currently been dragged   */
    /* somewhere else. Also, we don't lose track of where they belong while they are being moved.                  */
    CGRect home;
}
@property (nonatomic) int someId;
@property (nonatomic, retain) NSString *imageName;
@property (nonatomic, assign) CGRect home;
@property (nonatomic, assign) id <ThumbImageViewDelegate> delegate;

@end


///////////////////////////////// PROTOKOLL IMPLEMENTATION

@protocol ThumbImageViewDelegate <NSObject>

@optional
- (void)thumbImageViewWasTapped:(ThumbImageView *)tiv;
@end